/*
 * @Author: wanliofficial wanliofficial@aliyun.com
 * @Date: 2024-11-01 10:35:38
 * @LastEditors: wanliofficial wanliofficial@aliyun.com
 * @LastEditTime: 2025-02-10 17:27:04
 * @FilePath: \onetest-winx64d:\projects\leming\MeterSphere\framework\gateway\src\main\java\io\metersphere\gateway\GatewayApplication.java
 * @Description: 
 * 
 * Copyright (c) 2025 by ${git_name_email}, All Rights Reserved. 
 */
package io.metersphere.gateway;

import io.metersphere.autoconfigure.*;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.web.servlet.ServletWebServerFactoryAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.PropertySource;

@SpringBootApplication(exclude = {
        ShiroConfig.class,
        CommonsDatabaseConfig.class,
        RsaConfig.class,
        SessionConfig.class,
        WebSocketConfig.class,
        PermissionConfig.class,
        OpenApiConfig.class,
        MinIOConfig.class,
        ServletWebServerFactoryAutoConfiguration.class
})
@EnableDiscoveryClient
@PropertySource(value = {
        "classpath:commons.properties",
        "file:${BACKEND_SERVICE_PATH}/conf/metersphere.properties",
}, encoding = "UTF-8", ignoreResourceNotFound = true)
public class GatewayApplication {
    public static void main(String[] args) {
        SpringApplication.run(GatewayApplication.class, args);
    }
}
